// lc32View.h : interface of the CLc32View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LC32VIEW_H__C4B0062F_5E18_4C9E_A990_284CD41D27BA__INCLUDED_)
#define AFX_LC32VIEW_H__C4B0062F_5E18_4C9E_A990_284CD41D27BA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CLc32View : public CFormView
{
protected: // create from serialization only
	CLc32View();
	DECLARE_DYNCREATE(CLc32View)

public:
	//{{AFX_DATA(CLc32View)
	enum { IDD = IDD_LC32_FORM };
	CSliderCtrl	m_ctrlTimeout;
	CButton	m_btnStop;
	CButton	m_btnStart;
	float	m_fElField;
	float	m_fAnchCoeff;
	int		m_iMCStep;
	int		m_iTimeout;
	float	m_fAnchProb;
	//}}AFX_DATA

// Attributes
public:
	CLc32Doc* GetDocument();

private:
	bool m_bStopThread;
	CWinThread *m_pThread;
	CMutex m_mutex;

// Operations
public:

private:
	static UINT MyThreadProc(LPVOID pParam);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLc32View)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CLc32View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLc32View)
	afx_msg void OnMCStart();
	afx_msg void OnMCStop();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnUpdatePaintView(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in lc32View.cpp
inline CLc32Doc* CLc32View::GetDocument()
   { return (CLc32Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LC32VIEW_H__C4B0062F_5E18_4C9E_A990_284CD41D27BA__INCLUDED_)
